package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;
	
	public class SelectRoomCommand extends SuperCommand
	{
		public function SelectRoomCommand()
		{
			super();
			socketEvent = SocketEventID.ENTER_ROOM_NEW;
			viewEvent = ViewEventID.ENTER_ROOM_NEW;
		}
		override public function success(e:UnoEvent):void
		{
			db.tableList = e.data.tableList;
			db.userList = e.data.userList;
			db.loginUser.room = e.data.roomID;
		}
	}
}